#ifndef MYCOIN_H
#define MYCOIN_H

#include <QPushButton>
#include<QTimer>

class MyCoin : public QPushButton
{
    Q_OBJECT
public:
    //    explicit MyCoin(QWidget *parent = nullptr);

    //重写构造函数
    MyCoin(QString btnImg);
    int postion_x;
    int postion_y;
    bool direction;//正反
    void change();
    QTimer *time_1;
    QTimer *time_2;
    int min=1;
    int max=8;
    //动画是否执行
    bool is_animation = false;
    //胜利与否，用来禁用按钮
    bool result_coin;
    //重写点击事件，用于禁用鼠标
    void mousePressEvent(QMouseEvent *);
signals:

};

#endif // MYCOIN_H
